package com.hss.controller;

import com.hss.service.TestService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;
import java.math.BigDecimal;

public class TestController {
   @Resource
   private TestService testService;
    @PostMapping("/test")
    public BigDecimal test(@RequestParam("id") Long id, @RequestParam("type") Integer type) throws Exception {

     return testService.test(id,type);
    }
}
